package sing.flutter

import android.content.Intent
import com.baidu.ocr.ui.camera.CameraActivity

/**
 * 身份证扫描
 */
class ScanIdActivity : CameraActivity() {
    override fun handlePicture(contentType: String) {
        super.handlePicture(contentType)
        runOnUiThread {
            val intent = Intent()
            intent.putExtra(KEY_CONTENT_TYPE, contentType)
            setResult(RESULT_OK, intent)
            finish()
        }
    }
}